package com.rd.student.ruanjian.class1.duhang.day0801;

import java.util.Arrays;

public class Test03 {
    public static void main(String[] args) {
        int[] arr = {60, 77, 33, 55, 88, 90, 99};

        //选择
        for (int i = 0; i < arr.length ; i++) {
            for (int j = i + 1; j < arr.length-i; j++) {
                int min = arr[i];
                if (arr[j] < min) {
                    int tmp = arr[j];
                    arr[j] = min;
                    arr[i] = tmp;
                }
            }
        }
        System.out.println(Arrays.toString(arr));
    }
}
